package com.core.zyyz.amc.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.core.zyyz.amc.modules.mapper.AmcProjectLibraryBMapper;
import com.core.zyyz.amc.modules.domain.AmcProjectLibraryB;
import com.core.zyyz.amc.modules.service.AmcProjectLibraryBService;

/**
 * 项目库Service业务层处理
 *
 * @author lfs
 * @date 2024-12-04
 */
@Service
public class AmcProjectLibraryBServiceImpl implements AmcProjectLibraryBService
{
    @Autowired
    private AmcProjectLibraryBMapper amcProjectLibraryBMapper;

    /**
     * 查询项目库
     *
     * @param projectLibraryId 项目库主键
     * @return 项目库
     */
    @Override
    public AmcProjectLibraryB selectAmcProjectLibraryBByProjectLibraryId(String projectLibraryId)
    {
        return amcProjectLibraryBMapper.selectAmcProjectLibraryBByProjectLibraryId(projectLibraryId);
    }

    /**
     * 查询项目库列表
     *
     * @param amcProjectLibraryB 项目库
     * @return 项目库
     */
    @Override
    public List<AmcProjectLibraryB> selectAmcProjectLibraryBList(AmcProjectLibraryB amcProjectLibraryB)
    {
        return amcProjectLibraryBMapper.selectAmcProjectLibraryBList(amcProjectLibraryB);
    }

    /**
     * 新增项目库
     *
     * @param amcProjectLibraryB 项目库
     * @return 结果
     */
    @Override
    public int insertAmcProjectLibraryB(AmcProjectLibraryB amcProjectLibraryB)
    {
        return amcProjectLibraryBMapper.insertAmcProjectLibraryB(amcProjectLibraryB);
    }

    /**
     * 修改项目库
     *
     * @param amcProjectLibraryB 项目库
     * @return 结果
     */
    @Override
    public int updateAmcProjectLibraryB(AmcProjectLibraryB amcProjectLibraryB)
    {
        return amcProjectLibraryBMapper.updateAmcProjectLibraryB(amcProjectLibraryB);
    }

    /**
     * 批量删除项目库
     *
     * @param projectLibraryIds 需要删除的项目库主键
     * @return 结果
     */
    @Override
    public int deleteAmcProjectLibraryBByProjectLibraryIds(String[] projectLibraryIds)
    {
        return amcProjectLibraryBMapper.deleteAmcProjectLibraryBByProjectLibraryIds(projectLibraryIds);
    }

    /**
     * 删除项目库信息
     *
     * @param projectLibraryId 项目库主键
     * @return 结果
     */
    @Override
    public int deleteAmcProjectLibraryBByProjectLibraryId(String projectLibraryId)
    {
        return amcProjectLibraryBMapper.deleteAmcProjectLibraryBByProjectLibraryId(projectLibraryId);
    }
}
